package org.jeecg.modules.guard.vo;

import java.util.List;
import org.jeecg.modules.guard.entity.AgGuard;
import org.jeecg.modules.guard.entity.AgGuardDetail;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelEntity;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Description: 门禁主表
 * @Author: jeecg-boot
 * @Date:   2020-05-25
 * @Version: V1.0
 */
@Data
@ApiModel(value="ag_guardPage对象", description="门禁主表")
public class AgGuardPage {

	/**主键*/
	@ApiModelProperty(value = "主键")
	private String id;
	/**创建人*/
	@ApiModelProperty(value = "创建人")
	private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建日期")
	private Date createTime;
	/**更新人*/
	@ApiModelProperty(value = "更新人")
	private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "更新日期")
	private Date updateTime;
	/**所属部门*/
	@ApiModelProperty(value = "所属部门")
	private String sysOrgCode;
	/**设备名称*/
	@Excel(name = "设备名称", width = 15)
	@ApiModelProperty(value = "设备名称")
	private String devicename;
	/**安装位置*/
	@Excel(name = "安装位置", width = 15)
	@ApiModelProperty(value = "安装位置")
	private String location;
	/**具体型号*/
	@Excel(name = "具体型号", width = 15)
	@ApiModelProperty(value = "具体型号")
	private String model;
	
	@ExcelCollection(name="门禁详细记录")
	@ApiModelProperty(value = "门禁详细记录")
	private List<AgGuardDetail> agGuardDetailList;
	
}
